<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>01_introducing_selenium</title>
<link rel="stylesheet" type="text/css" href="css/mystyle.css"/>
</head>
<body>
	<h2>Introduction <span class="subTitle"><a href="http://www.seleniumhq.org/docs/01_introducing_selenium.jsp">online</a></span></h2>
	<h3>Test Automation for Web Applications</h3>
	<hr>
	<p>Many, perhaps most, software applications today are written as web-based applications to be run in an Internet browser. The effectiveness of testing these applications varies widely among companies and organizations. In an era of highly interactive and responsive software processes where many organizations are using some form of Agile methodology, test automation is frequently becoming a requirement for software projects. Test automation is often the answer. Test automation means using a software tool to run repeatable tests against the application to be tested. For regression testing this provides that responsiveness.</p>
	<p>当今许多软件应用程序都可以作为基于网络的应用程序来运行在互联网浏览器中。 测试这些应用程序的有效性在公司和组织中差别很大。 在一个高度互动且反应迅速的软件流程时代，许多组织正在使用某种形式的敏捷方法，而测试自动化通常成为软件项目的一个需求。 测试自动化通常是答案。 测试自动化意味着使用软件工具对要测试的应用程序运行可重复的测试。 对于回归测试，这提供了响应性。</p>
	<p>There are many advantages to test automation. Most are related to the repeatability of the tests and the speed at which the tests can be executed. There are a number of commercial and open source tools available for assisting with the development of test automation. Selenium is possibly the most widely-used open source solution. This user’s guide will assist both new and experienced Selenium users in learning effective techniques in building test automation for web applications.</p>
	<p>测试自动化有很多优点。 大部分与测试的可重复性和测试的执行速度有关。 有许多商业和开源工具可用于协助开发测试自动化。 硒可能是最广泛使用的开源解决方案。 本用户指南将帮助新用户和有经验的Selenium用户学习构建Web应用程序自动测试的有效技术。</p>
	<p>This user’s guide introduces Selenium, teaches its features, and presents commonly used best practices accumulated from the Selenium community. Many examples are provided. Also, technical information on the internal structure of Selenium and recommended uses of Selenium are provided.</p>
	<p>本用户指南介绍了Selenium，介绍了其功能，并介绍了Selenium社区中常用的最佳实践。 提供了很多例子。 此外，还提供了有关硒的内部结构和硒的推荐用途的技术信息。</p>
	<p>Test automation has specific advantages for improving the long-term efficiency of a software team’s testing processes. Test automation supports:</p>
	<p>测试自动化对于提高软件团队测试过程的长期效率具有特殊的优势。 测试自动化支持</p>
	<ul>
		<li>Frequent regression testing<span class="subA">频繁的回归测试</span> </li>
		<li>Rapid feedback to developers<span class="subA">快速反馈给开发人员</span></li>
		<li>Virtually unlimited iterations of test case execution<span class="subA">几乎无限次的测试用例迭代</span></li>
		<li>Support for Agile and extreme development methodologies<span class="subA">支持敏捷和极限开发方法</span></li>
		<li>Disciplined documentation of test cases<span class="subA">测试用例的纪律文档</span></li>
		<li>Customized defect reporting<span class="subA">定制的缺陷报告</span></li>
		<li>Finding defects missed by manual testing<span class="subA">通过手动测试发现缺陷</span></li>
	</ul>
	
	<h3>To Automate or Not to Automate?</h3>
	<p>Is automation always advantageous? When should one decide to automate test cases?</p>
	<p>自动化总是有利的吗？ 什么时候应该决定自动化测试用例？</p>
	<p>It is not always advantageous to automate test cases. There are times when manual testing may be more appropriate. For instance, if the application’s user interface will change considerably in the near future, then any automation might need to be rewritten anyway. Also, sometimes there simply is not enough time to build test automation. For the short term, manual testing may be more effective. If an application has a very tight deadline, there is currently no test automation available, and it’s imperative that the testing get done within that time frame, then manual testing is the best solution.</p>
	<p>自动化测试用例并不总是有利的。 有时候手动测试可能更合适。 例如，如果应用程序的用户界面在不久的将来会发生相当大的变化，那么任何自动化都可能需要重写。 另外，有时候根本没有足够的时间来构建测试自动化。 就短期而言，手动测试可能更有效。 如果应用程序的截止日期非常紧迫，那么目前没有可用的测试自动化，并且在这个时间范围内完成测试是必要的，然后手动测试是最好的解决方案。</p>
	<h3>Introducing Selenium</h3>
	<hr>
	<p>Selenium is a set of different software tools each with a different approach to supporting test automation. Most Selenium QA Engineers focus on the one or two tools that most meet the needs of their project, however learning all the tools will give you many different options for approaching different test automation problems. The entire suite of tools results in a rich set of testing functions specifically geared to the needs of testing of web applications of all types. These operations are highly flexible, allowing many options for locating UI elements and comparing expected test results against actual application behavior. One of Selenium’s key features is the support for executing one’s tests on multiple browser platforms.</p>
	<p>Selenium是一套不同的软件工具，每个软件工具都有不同的方法来支持测试自动化。 大多数硒质量控制工程师专注于最能满足他们项目需求的一两个工具，但是学习所有的工具将为您提供许多不同的选项来处理不同的测试自动化问题。 整套工具产生了丰富的测试功能，专门针对所有类型的Web应用程序的测试需求。 这些操作非常灵活，允许用于查找UI元素的许多选项，并将预期的测试结果与实际的应用程序行为进行比较。  Selenium的主要功能之一是支持在多个浏览器平台上执行测试。</p>
	<h3>Brief History of The Selenium Project</h3>
	<hr>
	<p>Selenium first came to life in 2004 when Jason Huggins was testing an internal application at ThoughtWorks. Being a smart guy, he realized there were better uses of his time than manually stepping through the same tests with every change he made. He developed a Javascript library that could drive interactions with the page, allowing him to automatically rerun tests against multiple browsers. That library eventually became Selenium Core, which underlies all the functionality of Selenium Remote Control (RC) and Selenium IDE. Selenium RC was ground-breaking because no other product allowed you to control a browser from a language of your choice.</p>
	<p>Selenium在2004年Jason Huggins在ThoughtWorks的一个内部应用程序测试中诞生。 作为一个聪明的人，他意识到他的时间用得更好，而不是每做一次改变就手动进行相同的测试。 他开发了一个Javascript库，可以驱动与页面的交互，允许他自动重新运行多个浏览器的测试。 该库最终成为Selenium Core，它是Selenium Remote Control（RC）和Selenium IDE所有功能的基础。 硒RC是开创性的，因为没有其他产品允许您从您选择的语言控制浏览器。</p>
	
	<p>While Selenium was a tremendous tool, it wasn’t without its drawbacks. Because of its Javascript based automation engine and the security limitations browsers apply to Javascript, different things became impossible to do. To make things worse, webapps became more and more powerful over time, using all sorts of special features new browsers provide and making these restrictions more and more painful.</p>
	<p>而硒是一个巨大的工具，它不是没有缺点。 由于其基于Javascript的自动化引擎和浏览器应用于Javascript的安全限制，不同的事情变得不可能做到。 更糟的是，随着时间的推移，webapps变得越来越强大，使用新浏览器提供的各种特殊功能，并使这些限制变得越来越痛苦。</p>
	
	<p>In 2006 a plucky engineer at Google named Simon Stewart started work on a project he called WebDriver. Google had long been a heavy user of Selenium, but testers had to work around the limitations of the product. Simon wanted a testing tool that spoke directly to the browser using the ‘native’ method for the browser and operating system, thus avoiding the restrictions of a sandboxed Javascript environment. The WebDriver project began with the aim to solve the Selenium’ pain-points.</p>
	<p>在2006年，一位名叫西蒙·斯图尔特（Simon Stewart）的杰出工程师开始了一个名为WebDriver的项目。 谷歌长期以来一直是硒的重要用户，但测试人员必须解决产品的局限性。  Simon想要一个测试工具，通过浏览器和操作系统的“native”方法直接与浏览器对话，从而避免了沙箱化Javascript环境的限制。  WebDriver项目的开始是为了解决Selenium的痛点。</p>
	
	
	<p>Jump to 2008. The Beijing Olympics mark China’s arrival as a global power, massive mortgage default in the United States triggers the worst international recession since the Great Depression, The Dark Knight is viewed by every human (twice), still reeling from the untimely loss of Heath Ledger. But the most important story of that year was the merging of Selenium and WebDriver. Selenium had massive community and commercial support, but WebDriver was clearly the tool of the future. The joining of the two tools provided a common set of features for all users and brought some of the brightest minds in test automation under one roof. Perhaps the best explanation for why WebDriver and Selenium are merging was detailed by Simon Stewart, the creator of WebDriver, in a joint email to the WebDriver and Selenium community on August 6, 2009.</p>
	<p>跳转到2008年。北京奥运标志着中国作为全球大国的到来，美国的大规模抵押贷款违约触发了大萧条以来最严重的国际经济衰退，黑暗骑士被每个人（两次）看到，仍然从不合时宜的损失 希斯·莱杰。 但是那年的最重要的故事是Selenium和WebDriver的合并。 硒有大量的社区和商业支持，但WebDriver显然是未来的工具。 两种工具的结合为所有用户提供了一套通用的功能，并将测试自动化中的一些最聪明的思想带到一个屋檐下。  WebDriver和Selenium合并的最好解释是WebDriver的创建者Simon Stewart在2009年8月6日发给WebDriver和Selenium社区的联合电子邮件中详细介绍的。</p>
	
	
	<p>“Why are the projects merging? Partly because WebDriver addresses some shortcomings in selenium (by being able to bypass the JS sandbox, for example. And we’ve got a gorgeous API), partly because selenium addresses some shortcomings in WebDriver (such as supporting a broader range of browsers) and partly because the main selenium contributors and I felt that it was the best way to offer users the best possible framework.”</p>
	<p>“为什么项目合并？ 部分原因是WebDriver解决了Selenium中的一些缺陷（例如，能够绕过JS沙盒，而且我们有一个非常漂亮的API），部分原因是硒解决了WebDriver的一些缺点（比如支持更广泛的浏览器）和 一方面是因为主要的硒贡献者，我觉得这是为用户提供最好的框架的最好方式。“</p>
	
	<h3>Selenium’s Tool Suite</h3>
	<hr>
	
	<p>Selenium is composed of multiple software tools. Each has a specific role.</p>
	<p>Selenium由多个软件工具组成。 每个人都有特定的角色。</p>
	
	<h4>Selenium 2 (aka. Selenium WebDriver)</h4>
	<hr>
	<p>Selenium 2 is the future direction of the project and the newest addition to the Selenium toolkit. This brand new automation tool provides all sorts of awesome features, including a more cohesive and object oriented API as well as an answer to the limitations of the old implementation.</p>
	<p>Selenium 2是该项目的未来方向，也是Selenium工具包的最新成员。 这个全新的自动化工具提供了各种令人敬畏的功能，包括一个更有凝聚力和面向对象的API，以及老的实现的局限性的答案。</p>

	<p>As you can read in <a href="http://www.seleniumhq.org/docs/01_introducing_selenium.jsp#brief-history-of-the-selenium-project">Brief History of The Selenium Project</a>, both
		the Selenium and WebDriver developers agreed that both tools have
		advantages and that merging the two projects would make a much more
		robust automation tool.</p>
	<p>正如您可以在Selenium项目简史中看到的，Selenium和WebDriver开发人员都认为这两个工具都有优势，合并这两个项目将会构成一个更强大的自动化工具。</p>
	
	<p>Selenium 2.0 is the product of that effort. It supports the WebDriver API and underlying technology, along with the Selenium 1 technology underneath the WebDriver API for maximum flexibility in porting your tests. In addition, Selenium 2 still runs Selenium 1’s Selenium RC interface for backwards compatibility.</p>
	<p>硒2.0是这种努力的产物。 它支持WebDriver API和底层技术，以及WebDriver API下的Selenium 1技术，以便在移植测试时获得最大的灵活性。 另外，Selenium 2仍然运行Selenium 1的Selenium RC接口以实现向后兼容。</p>
	
	<h4>Selenium 1 (aka. Selenium RC or Remote Control)</h4>
	<hr>
	<p>As you can read in <a href="http://www.seleniumhq.org/docs/01_introducing_selenium.jsp#brief-history-of-the-selenium-project">Brief History of The Selenium Project</a>,
		Selenium RC was the main Selenium project for a long time, before the
		WebDriver/Selenium merge brought up Selenium 2, the newest and more
		powerful tool.</p>
	<p>正如你可以在“硒项目简史”中看到的那样，在WebDriver / Selenium合并之前，Selenium RC是Selenium 2的主要工程，这是最新的和更强大的工具。</p>

	<p>Now Selenium 1 is deprecated and is not actively supported (mostly in maintenance mode).</p>
	<p>现在Selenium 1已被弃用，并没有得到积极的支持（主要是维护模式）。</p>
	
	<h4>Selenium IDE</h4>
	<hr>
	<p>Selenium IDE (Integrated Development Environment) is a prototyping tool for building test scripts. It is a Firefox plugin and provides an easy-to-use interface for developing automated tests. Selenium IDE has a recording feature, which records user actions as they are performed and then exports them as a reusable script in one of many programming languages that can be later executed.</p>
	<p>Selenium IDE（集成开发环境）是构建测试脚本的原型工具。 它是一个Firefox插件，为开发自动化测试提供了一个易于使用的界面。  Selenium IDE具有记录功能，可以记录用户执行的操作，然后将其作为可重用脚本以许多可以稍后执行的编程语言之一导出。</p>
	
	<p>Note</p>
	<p>Even though Selenium IDE has a “Save” feature that allows users to keep the tests in a table-based format for later import and execution, it is not designed to run your test passes nor is it designed to build all the automated tests you will need. Specifically, Selenium IDE doesn’t provide iteration or conditional statements for test scripts. At the time of writing there is no plan to add such thing. The reasons are partly technical and partly based on the Selenium developers encouraging best practices in test automation which always requires some amount of programming. Selenium IDE is simply intended as a rapid prototyping tool. The Selenium developers recommend for serious, robust test automation either Selenium 2 or Selenium 1 to be used with one of the many supported programming languages.</p>
	<p>即使Selenium IDE具有“保存”功能，允许用户以基于表格的格式保存测试以供以后导入和执行，但它并不是设计用来运行测试通行证，也不是用来构建所有的自动化测试 需要。 具体而言，Selenium IDE不会为测试脚本提供迭代或条件语句。 在撰写本文时，并没有计划添加这样的东西。 原因部分是技术性的，部分基于Selenium开发人员鼓励测试自动化中的最佳实践，这通常需要一定量的编程。 硒IDE只是作为一个快速原型工具。  Selenium开发人员推荐使用Selenium 2或Selenium 1进行认真，稳健的自动测试，并将其与众多支持的编程语言中的一种一起使用。</p>
	
	<h4>Selenium-Grid</h4>
	<hr>
	<p>Selenium-Grid allows the Selenium RC solution to scale for large test suites and for test suites that must be run in multiple environments. Selenium Grid allows you to run your tests in parallel, that is, different tests can be run at the same time on different remote machines. This has two advantages. First, if you have a large test suite, or a slow-running test suite, you can boost its performance substantially by using Selenium Grid to divide your test suite to run different tests at the same time using those different machines. Also, if you must run your test suite on multiple environments you can have different remote machines supporting and running your tests in them at the same time. In each case Selenium Grid greatly improves the time it takes to run your suite by making use of parallel processing.</p>
	<p>Selenium-Grid允许Selenium RC解决方案针对大型测试套件和必须在多个环境中运行的测试套件进行扩展。  Selenium Grid允许您并行运行测试，也就是说，可以在不同的远程机器上同时运行不同的测试。 这有两个好处。 首先，如果你有一个大的测试套件，或者一个运行速度慢的测试套件，你可以通过使用Selenium Grid将你的测试套件划分为同时使用不同的机器同时运行不同的测试。 而且，如果您必须在多个环境中运行您的测试套件，您可以让不同的远程机器同时支持并运行您的测试。 在每种情况下，Selenium Grid通过使用并行处理大大缩短了运行套件所花费的时间。</p>
	
	<h3>Choosing Your Selenium Tool</h3>
	<hr>
	<p>Many people get started with Selenium IDE. If you are not already experienced with a programming or scripting language you can use Selenium IDE to get familiar with Selenium commands. Using the IDE you can create simple tests quickly, sometimes within seconds.</p>
	<p>许多人开始使用Selenium IDE。 如果您还不熟悉编程或脚本语言，则可以使用Selenium IDE熟悉Selenium命令。 使用IDE，您可以快速创建简单的测试，有时在几秒钟内。</p>
	
	<p>We don’t, however, recommend you do all your test automation using Selenium IDE. To effectively use Selenium you will need to build and run your tests using either Selenium 2 or Selenium 1 in conjunction with one of the supported programming languages. Which one you choose depends on you.p</p>
	<p>但是，我们并不建议您使用Selenium IDE进行所有测试自动化。 为了有效地使用Selenium，您将需要使用Selenium 2或Selenium 1与其中一种支持的编程语言一起构建和运行测试。 你选择哪一个取决于你。</p>
	
	
	<p>At the time of writing the Selenium developers are planning on the Selenium-WebDriver API being the future direction for Selenium. Selenium 1 is provided for backwards compatibility. Still, both have strengths and weaknesses which are discussed in the corresponding chapters of this document.</p>
	<p>在撰写本文时，Selenium开发人员正在计划将Selenium-WebDriver API作为Selenium未来的发展方向。  Selenium 1是为了向后兼容而提供的。 尽管如此，这两个方面都有优点和缺点，在本文的相应章节讨论。</p>
	
	<p>We recommend those who are completely new to Selenium to read through these sections. However, for those who are adopting Selenium for the first time, and therefore building a new test suite from scratch, you will probably want to go with Selenium 2 since this is the portion of Selenium that will continue to be supported in the future.</p>
	<p>我们建议那些对Selenium完全陌生的人阅读这些章节。 但是，对于那些首次使用Selenium的人来说，从头开始构建一个新的测试套件，您可能会想要使用Selenium 2，因为这是Selenium的一部分，未来将继续得到支持。</p>
	
	<h3>Supported Browsers and Platforms</h3>
	<hr>
	<p>In Selenium 2.0, the supported browsers vary depending on whether you are using Selenium-WebDriver or Selenium-RC.</p>
	<p>在Selenium 2.0中，支持的浏览器根据您使用的是Selenium-WebDriver还是Selenium-RC而有所不同。</p>
	
	<h4>Selenium-WebDriver</h4>
	<hr>
	<p>Selenium-WebDriver supports the following browsers along with the operating systems these browsers are compatible with.</p>
	<p>Selenium-WebDriver支持以下浏览器以及这些浏览器兼容的操作系统。</p>
	
	<ul>
		<li>Google Chrome</li>
		<li>Internet Explorer 7, 8, 9, 10, and 11 on appropriate combinations of Vista, Windows 7, Windows 8, and Windows 8.1. As of April 15 2014, IE 6 is no longer supported. The driver supports running 32-bit and 64-bit versions of the browser where applicable</li>
		<li>Firefox: latest ESR, previous ESR, current release, one previous release</li>
		<li>Safari</li>
		<li>Opera</li>
		<li>HtmlUnit</li>
		<li>phantomjs</li>
		<li>Android (with Selendroid or appium)</li>
		<li>iOS (with ios-driver or appium)</li>
	</ul>
	<h4>Selenium 1.0 and Selenium-RC.</h4>
	<hr>
	<p>This is the old, support platform for Selenium 1.0. It should still apply to the Selenium 2.0 release of Selenium-RC.</p>
	<p>这是Selenium 1.0的旧支持平台。 它应该仍然适用于Selenium-RC的Selenium 2.0版本。</p>


<table border="1" class="docutils">
<colgroup>
<col width="12%">
<col width="45%">
<col width="24%">
<col width="19%">
</colgroup>
<tbody valign="top">
<tr class="row-odd"><td><strong>Browser</strong></td>
<td><strong>Selenium IDE</strong></td>
<td><strong>Selenium 1 (RC)</strong></td>
<td><strong>Operating Systems</strong></td>
</tr>
<tr class="row-even"><td>Firefox 3.x</td>
<td>Record and playback tests</td>
<td>Start browser, run tests</td>
<td>Windows, Linux, Mac</td>
</tr>
<tr class="row-odd"><td>Firefox 3</td>
<td>Record and playback tests</td>
<td>Start browser, run tests</td>
<td>Windows, Linux, Mac</td>
</tr>
<tr class="row-even"><td>Firefox 2</td>
<td>Record and playback tests</td>
<td>Start browser, run tests</td>
<td>Windows, Linux, Mac</td>
</tr>
<tr class="row-odd"><td>IE 8</td>
<td>Test execution only via Selenium RC*</td>
<td>Start browser, run tests</td>
<td>Windows</td>
</tr>
<tr class="row-even"><td>IE 7</td>
<td>Test execution only via Selenium RC*</td>
<td>Start browser, run tests</td>
<td>Windows</td>
</tr>
<tr class="row-odd"><td>IE 6</td>
<td>Test execution only via Selenium RC*</td>
<td>Start browser, run tests</td>
<td>Windows</td>
</tr>
<tr class="row-even"><td>Safari 4</td>
<td>Test execution only via Selenium RC</td>
<td>Start browser, run tests</td>
<td>Windows, Mac</td>
</tr>
<tr class="row-odd"><td>Safari 3</td>
<td>Test execution only via Selenium RC</td>
<td>Start browser, run tests</td>
<td>Windows, Mac</td>
</tr>
<tr class="row-even"><td>Safari 2</td>
<td>Test execution only via Selenium RC</td>
<td>Start browser, run tests</td>
<td>Windows, Mac</td>
</tr>
<tr class="row-odd"><td>Opera 10</td>
<td>Test execution only via Selenium RC</td>
<td>Start browser, run tests</td>
<td>Windows, Linux, Mac</td>
</tr>
<tr class="row-even"><td>Opera 9</td>
<td>Test execution only via Selenium RC</td>
<td>Start browser, run tests</td>
<td>Windows, Linux, Mac</td>
</tr>
<tr class="row-odd"><td>Opera 8</td>
<td>Test execution only via Selenium RC</td>
<td>Start browser, run tests</td>
<td>Windows, Linux, Mac</td>
</tr>
<tr class="row-even"><td>Google Chrome</td>
<td>Test execution only via Selenium RC</td>
<td>Start browser, run tests</td>
<td>Windows, Linux, Mac</td>
</tr>
<tr class="row-odd"><td>Others</td>
<td>Test execution only via Selenium RC</td>
<td>Partial support possible**</td>
<td>As applicable</td>
</tr>
</tbody>
</table>
<div>* Tests developed on Firefox via Selenium IDE can be executed on any other supported browser via a simple Selenium RC command line.<span class="subA">通过Selenium IDE在Firefox上开发的测试可以通过简单的Selenium RC命令行在任何其他支持的浏览器上执行。</span></div>
<div>** Selenium RC server can start any executable, but depending on browser security settings there may be technical limitations that would limit certain features.<span class="subA">硒RC服务器可以启动任何可执行文件，但取决于浏览器的安全设置，可能会限制某些功能的技术限制。</span></div>

<h3>Flexibility and Extensibility</h3>
<p>You’ll find that Selenium is highly flexible. There are many ways you can add functionality to both Selenium test scripts and Selenium’s framework to customize your test automation. This is perhaps Selenium’s greatest strength when compared with other automation tools. These customizations are described in various places throughout this document. In addition, since Selenium is Open Source, the sourcecode can always be downloaded and modified.</p>
<p>你会发现Selenium是非常灵活的。 有许多方法可以将功能添加到Selenium测试脚本和Selenium的框架中，以定制您的测试自动化。 这可能是Selenium与其他自动化工具相比最大的优势。 这些定制在本文档的各个地方都有描述。 另外，由于Selenium是开源的，源代码总是可以下载和修改。</p>

<h3>What’s in this Book?</h3>
<p>This user’s guide targets both new users and those who have already used Selenium but are seeking additional knowledge. We introduce Selenium to new users and we do not assume prior Selenium experience. We do assume, however, that the user has at least a basic understanding of test automation. For the more experienced user, this guide can act as a reference. For the more experienced, we recommend browsing the chapter and subheadings. We’ve provided information on the Selenium architecture, examples of common usage, and a chapter on test design techniques.</p>
<p>本用户指南既针对新用户，也针对那些已经使用Selenium但正在寻求额外知识的用户。 我们将Selenium介绍给新用户，我们不会假设Selenium的经验。 但是，我们假设用户对测试自动化至少有一个基本的了解。 对于更有经验的用户，本指南可以作为参考。 对于更有经验的人，我们建议浏览章节和小标题。 我们已经提供了关于Selenium体系结构的信息，常见用法的例子以及关于测试设计技术的一章。</p>

<p>The remaining chapters of the reference present: <span class="subA">参考文献的其余章节</span></p>



<h5><a href="http://www.seleniumhq.org/docs/02_selenium_ide.jsp#chapter02-reference">Selenium IDE</a></h5>
<p>Introduces Selenium IDE and describes how to use it to build test scripts. using the Selenium Integrated Development Environment. If you are not experienced in programming, but still hoping to learn test automation this is where you should start and you’ll find you can create quite a few automated tests with Selenium IDE. Also, if you are experienced in programming, this chapter may still interest you in that you can use Selenium IDE to do rapid prototyping of your tests. This section also demonstrates how your test script can be “exported” to a programming language for adding more advanced capabilities not supported by Selenium IDE.</p>
<p>介绍Selenium IDE并介绍如何使用它来构建测试脚本。 使用硒集成开发环境。 如果您没有编程经验，但仍然希望学习测试自动化，那么您应该从哪里开始，并且您会发现您可以使用Selenium IDE创建相当多的自动化测试。 此外，如果您有编程经验，本章可能仍然感兴趣，您可以使用Selenium IDE快速建立测试原型。 本节还将演示如何将测试脚本“导出”为编程语言，以便添加Selenium IDE不支持的更高级功能。</p>

<h5><a href="http://www.seleniumhq.org/docs/03_webdriver.jsp#chapter03-reference">Selenium 2</a></h5>
<p>Explains how to develop an automated test program using Selenium 2.</p>
<p>解释如何使用Selenium 2开发自动化测试程序。</p>

<h5><a href="http://www.seleniumhq.org/docs/05_selenium_rc.jsp#chapter05-reference">Selenium 1</a></h5>
<p>Explains how to develop an automated test program using the Selenium RC API. Many examples are presented in both programming languages and scripting languages. Also, the installation and setup of Selenium RC is covered here. The various modes, or configurations, that Selenium RC supports are described, along with their trade-offs and limitations. An architecture diagram is provided to help illustrate these points. Solutions to common problems frequently difficult for new Sel-R users are described here, for instance, handling Security Certificates, https requests, pop-ups, and the opening of new windows.</p>
<p>介绍如何使用Selenium RC API开发自动化测试程序。 在编程语言和脚本语言中都有很多例子。 此外，Selenium RC的安装和设置也在这里介绍。 描述了Selenium RC支持的各种模式或配置，以及它们的权衡和限制。 提供了一个架构图来帮助说明这些要点。 在这里描述解决常见问题的常见问题，例如处理安全证书，https请求，弹出窗口以及打开新窗口。</p>

<h5><a href="http://www.seleniumhq.org/docs/06_test_design_considerations.jsp#chapter06-reference">Test Design Considerations</a></h5>
<p>This chapter presents programming techniques for use with Selenium-WebDriver and Selenium RC. We also demonstrate techniques commonly asked about in the user forum such as how to design setup and teardown functions, how to implement data-driven tests (tests where one can vary the data between test passes) and other methods of programming common test automation tasks.</p>
<p>本章介绍用于Selenium-WebDriver和Selenium RC的编程技巧。 我们还演示了在用户论坛中常见的技术，比如如何设计安装和拆卸功能，如何实现数据驱动的测试（测试可以改变测试通过之间的数据）以及其他编程常用测试自动化任务的方法。</p>

<h5><a href="http://www.seleniumhq.org/docs/07_selenium_grid.jsp#chapter07-reference">Selenium-Grid</a></h5>
<p>This chapter is not yet developed.</p>
<p>本章尚未开发。</p>

<h5><a href="http://www.seleniumhq.org/docs/08_user_extensions.jsp#chapter08-reference">User extensions</a></h5>
<p>Describes ways that Selenium can be modified, extended and customized.</p>
<p>介绍硒可以被修改，扩展和定制的方式。</p>

<h3>The Documentation Team–Authors Past and Present</h3>
<hr>
<p>In alphabetical order, the following people have made significant contributions to the authoring of this user’s guide, its publishing infrastructure, or both. We are very grateful to all of them.</p>
<p>下列人员按字母顺序为本用户指南的制作，其出版基础设施或两者做出了重大贡献。 我们非常感谢他们。</p>

<ul>
	<li>Dave Hunt</li>
	<li>Luke Inman-Semerau</li>
	<li>Mary Ann May-Pumphrey</li>
	<li>Noah Sussman</li>
	<li>Paul Grandjean</li>
	<li>Peter Newhook</li>
	<li>Santiago Suarez-Ordonez</li>
	<li>Simon Stewart</li>
	<li><a href="http://seleniumtests.com/">Tarun Kumar</a></li>
</ul>

<h4>Acknowledgements</h4>
<hr>
<p>A special thanks goes to Patrick Lightbody. As an administrator of the SeleniumHQ website, major contributor to Selenium RC, his support was invaluable when writing the first release of the user’s guide. Patrick helped us understand our audience. He also set us up with everything we needed on the seleniumhq.org website for publishing the documents. Also a thanks goes to Andras Hatvani for his advice on publishing solutions, and to Amit Kumar for participating in our discussions and for assisting with reviewing the document.</p>
<p>特别感谢Patrick Lightbody。 作为Selenium RC主要贡献者SeleniumHQ网站的管理员，在编写第一版用户指南时，他的支持是无价的。 帕特里克帮助我们了解我们的观众 他还为我们提供了在seleniumhq.org网站上发布文件所需的一切。 此外，感谢Andras Hatvani提供解决方案的建议，并感谢Amit Kumar参与我们的讨论并协助审查文档。</p>

<p>And of course, we must recognize the Selenium Developers. They have truly designed an amazing tool. Without the vision of the original designers, and the continued efforts of the current developers, we would not have such a great tool to pass on to you.</p>
<p>当然，我们必须承认硒开发商。 他们真的设计了一个惊人的工具。 没有原设计师的眼光，也没有现在的开发者的不懈努力，我们就没有这么好的工具可以传给你了。</p>




</body>
</html>